From: marek Date: Mon, 13 Jul 2009 15:20:50 +0000 (+0000) Subject: [nodogsplash] fixing syntax errors in the init script X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=7e4a500e766e2ba7a96715f3db6f6bae77db9d66;p=feed%2Frouting.git [nodogsplash] fixing syntax errors in the init script git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/nodogsplash@16832 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/files/nodogsplash.init b/files/nodogsplash.init index 5676280..7eba60b 100644 --- a/files/nodogsplash.init +++ b/files/nodogsplash.init @@ -26,7 +26,7 @@ start() { if $WD_DIR/ndsctl status 2> /dev/null; then echo "FAILED: nodogsplash already running" else - if $0 test_module && $WD_DIR/nodogsplash $OPTIONS; then + if test_module && $WD_DIR/nodogsplash $OPTIONS; then echo "OK: nodogsplash started" else echo "FAILED: nodogsplash exited with non 0 status" @@ -45,6 +45,8 @@ stop() { else echo "FAILED: nodogsplash was not running" fi +} + status() { $WD_DIR/ndsctl status }